package com.example.springboot.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

@Data
@TableName("poet")
public class Poet extends Model<Poet> {

    @TableId(type=IdType.AUTO)
    private Integer id;
    private String name;

    private String surname;

    private Integer age;
    private String code;
    private String content;
    private String img;
    private String time;
    private String type;

    private String birthLocale;
    private Integer birthYear;
    private String deathLocale;
    private Integer deathYear;
    private String birthProvince;
    private String deathProvince;

    @TableField(exist = false)
    private Integer number;
    @TableField(exist = false)
    private String locale;

}